package org.webcamp.questionary.dto;

import java.util.ArrayList;
import java.util.List;

public class QuestionaryProgress {

	private Questionary questionary;
	private int currentQuestionIndex;
	private List<List<AnswerIndex>> answers = new ArrayList<>();

	public Questionary getQuestionary() {
		return questionary;
	}

	public void setQuestionary(Questionary questionary) {
		this.questionary = questionary;
	}

	public int getCurrentQuestionIndex() {
		return currentQuestionIndex;
	}

	public void setCurrentQuestionIndex(int currentQuestionIndex) {
		this.currentQuestionIndex = currentQuestionIndex;
	}

	public List<List<AnswerIndex>> getAnswers() {
		return answers;
	}

	public void setAnswers(List<List<AnswerIndex>> answers) {
		this.answers = answers;
	}

	public Question getCurrentQuestion() {
		return questionary.getQuestions().get(currentQuestionIndex);
	}

}
